package com.nbgroup.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Contract {
    private Long contractId;
    private String id;
    private String contractNo;
    private String name;
    private String phone;
    private BigDecimal coursePrice;
    private String discountType;
    private String subject;
    private String channel;
    private Integer activityId; // 注意：原字段名activityld可能有误，这里假设为activityId
    private Long courseId; // 注意：原字段名courseldint可能有误，这里假设为courseId
    private String status;
    private String fileName;
    private BigDecimal order; // 注意：这里使用了BigDecimal来处理decimal类型，需要导入java.math.BigDecimal
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String createBy;
    private String updateBy;
    private Integer deptId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishTime; // 注意：如果finishTime是日期时间类型，这里应该使用Timestamp或其他日期时间类型，但根据字段名可能是整型（表示某种状态或时间戳），这里先按整型处理
    private Integer businessId;
}
